import { createApp } from 'vue'
import App from './App.vue'
import store from '@/store/index'
import router from './router/index'

// plugin
import axios from '@/plugin/axios'
import properties from '@/properties.js'
import util from '@/plugin/util';

const app = createApp(App)
app.use(store)
app.use(router)

// plugin
app.use(axios)
app.use(util);
app.use({
  install(app) {
    Object.keys(properties).forEach(key => {
      app.config.globalProperties[key] = properties[key];
    })
  }
});
app.mount('#app')